import type { MessageDetail } from '@/types/message';
import { http } from '@/utils/request';
// 消息
export const getPatientMessageListAPI = () =>
  http<MessageDetail[]>('/patient/message/list', 'GET');
// 发送消息
export const postSendChatMsgAPI = (
  from: string,
  to: string,
  msgType: number,
  msg: {
    content: string;
    picture?: string;
  }
) => http('/sendChatMsg', 'POST', { from, to, msgType, msg });
// 聊天详情
export const patientConsultOrderDetailOrderIdAPI = (orderId: string) =>
  http('patient/consult/order/detail', 'GET', { orderId });
